package cate.game.train.equip.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBTrain;
import cate.game.role.bag.equip.Equip;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "装备铭刻 の 返回")
public class EquipRubbingResp implements MsgOutput {
    @NoteField(value = "装备信息")
    public Equip equip;

    @NoteField(value = "英雄UID", detail = "如果是英雄身上的装备还会有英雄id")
    public String heroUid;

    @NoteField(value = "部位ID", detail = "如果是英雄身上的装备还会有部位id")
    public byte pos;

    public EquipRubbingResp(){

    }

    public EquipRubbingResp(Equip equip, String heroUid, byte pos){
        this.equip = equip;
        this.heroUid = heroUid;
        this.pos = pos;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBTrain.EQUIP_RUBBING_RESP;
    }
}
